package de.alexhepp.widgets.messagewidget;

import android.content.Context;
import android.text.format.DateUtils;

public class SMSMessage {

	private String number;
	private long senderId;
	private boolean read;
	private String body;
	private long date;
	private long messageId;

	private static final String LOG_TAG = "de.alexhepp.widgets.messagewidget.SMSMessage";

	public long getMessageId() {
		return messageId;
	}

	public void setMessageId(long messageId) {
		this.messageId = messageId;
	}

	public SMSMessage() {

	}
	
	public SMSMessage(String number, long senderId, boolean read, String body,
			String date) {
	}

	public long getSenderId() {
		return senderId;
	}

	public void setSenderId(long senderId) {
		this.senderId = senderId;
	}

	public boolean isRead() {
		return read;
	}

	public void setRead(boolean read) {
		this.read = read;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public long getDate() {
		return date;
	}

	public void setDate(long date) {
		this.date = date;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public CharSequence getFormattedDate(Context context) {
		return DateUtils.formatDateTime(context, date, DateUtils.FORMAT_NUMERIC_DATE);
	}

	public CharSequence getFormattedTime(Context context) {
		return DateUtils.formatDateTime(context, date, DateUtils.FORMAT_SHOW_TIME);
	}
}
